package com.luoran.bartalks.dao;

import java.util.List;

import org.beetl.sql.core.annotatoin.Param;
import org.beetl.sql.core.engine.PageQuery;
import org.beetl.sql.core.mapper.BaseMapper;

import com.luoran.bartalks.entity.BaseInfo;
import com.luoran.bartalks.entity.biz.BtContainerTemplate;

public interface IBtContainerTemplateDao extends BaseMapper<BtContainerTemplate> {

	void queryPage(PageQuery<? extends BaseInfo> pageQuery);

	/**
	 * 根据编码查询容器模板
	 * 
	 * @param templateCode
	 * @param companyId
	 * @return
	 */
	BtContainerTemplate getContainerTemplateByCode(@Param("templateCode") String templateCode,
			@Param("companyId") String companyId);

	List<BtContainerTemplate> getContainerTemplateByCompanyId(@Param("companyId") String companyId);

	void deleteTemplatesByCompanyId(@Param("companyId") String companyId);
	
	//查询模版公司数据
	List<BtContainerTemplate>  getContainerTemplateStencilList(@Param("companyId")String companyId);
	
	//根据Id   in 查询
	List<BtContainerTemplate> getByIds(@Param("ids")List<String> ids);
}


